package com.stgy.lease.common.utils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * ClassName:PhoneUtil
 * Package:com.stgy.lease.common.utils
 * Description:
 *
 * @Author:helei
 * @Create:2024/9/4 - 16:33
 */
public class PhoneUtil {
    public static boolean checkPhone(String phone) {
        String regex = "^1[3456789]\\d{9}$";
        Pattern pattern = Pattern.compile(regex);
        Matcher matcher = pattern.matcher(phone);
        return matcher.matches();
    }
}
